//
//  MHZTitleListChainTitleCell.swift
//  UNHimalayas
//
//  Created by MaHaoZhe on 2019/11/22.
//  Copyright © 2019 HachiTech. All rights reserved.
//

import UIKit

class MHZTitleListChainTitleCell: UICollectionViewCell {
    
    var titleLab : UILabel!
    var titleStr : String!{
        didSet{
            self.titleLab.text = titleStr
        }
    }
    
    override init(frame: CGRect) {
        super.init(frame: frame)
        
        self.setupCellUI()
    }
    
    required init?(coder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    
    func setupCellUI()
    {
        self.titleLab = UILabel.init()
        self.titleLab.textAlignment = .center
        self.titleLab.font = UIFont.systemFont(ofSize: 14)
        self.titleLab.textColor = UIColor.black
        self.addSubview(self.titleLab)
        
        self.titleLab.snp.makeConstraints { (make) in
            make.edges.equalTo(self)
        }
    }
}
